package com.achao.socket;

import com.achao.thread.ConnThread;
import com.achao.utils.ParamUtils;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @Author: achao
 * @DateTime: 2022/8/9 19:32
 * @Description: TODO
 */
public class MyTomcat {

    public MyTomcat() {
        ServerSocket serverSocket;

        try {
            serverSocket = new ServerSocket(ParamUtils.PORT);
            new Thread(new ConnThread(serverSocket)).start();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
